void evaluate(int evaltype,float u,float v,vector *dest)
Parameter | Type | Description |
---|---|---|
evaltype | int | bit field specifying what to evaluate: bit 1 (1) - point (PATCH_EVAL_POINT) bit 2 (2) - texture co-ordinates (PATCH_EVAL_TEXTCOORD) bit 3 (4) - normal (PATCH_EVAL_NORMAL) |
u | float | u co-ordinate |
v | float | v co-ordinate |
dest | vector * | buffer where to write evaluated data |
None
This function evaluates the Bezier patch.
The u
and v parameters must be in the range 0.0 to 1.0.
Use the evaltype modifier to specify what should be evaluated.
The dest pointer must point to at least the number of selected values to
be evaluated by evaltype.